<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //没有返回值的情况返回undefined
    function fn(){
        console.log("函数体执行");
        return;
    }
    console.log(fn());


    //有返回值的情况
    function fn1(){
        console.log("函数体执行");
        return 1;
    }
    console.log(fn1());
</script>